package com.training2.bookstore.product.service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import javax.transaction.Transactional;

import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

import com.training2.bookstore.product.model.Product;

public interface ProductService {
	public Collection<Product> listProduct();

	public Product create(Product p);
	public Product update(Product p) ;
	public Product remove(String id);
	public void storeProductImage(String productId, String storedFileId) ;
	public Collection<Product> search(String key);
}
